import {createRouter,createWebHashHistory} from 'vue-router'

//创建路由
const router = createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:'/',
            redirect:'register'
        },
        {
          //注册页面
            path:'/register',
            component:()=>import('../views/RegisterView.vue')
        },
        {
            //注册成功页面
            path:'/rsuccess',
            component:()=>import('../views/RegisterSuccessView.vue')
        }
      ]
})

//导出路由
export default router